import Vue from 'vue'
import App from './App.vue'

import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 全局样式
import '@/style/index.scss';

// 引入自定义指令
import '@/directive/debounceBtn.js'

import { awaitCatch, jsonClone } from '@/utils/publicFunc';

require('./mock')

Vue.config.productionTip = false

// 全局方法挂载
Vue.prototype.awaitCatch = awaitCatch;
Vue.prototype.jsonClone = jsonClone;

Vue.use(Element);

new Vue({
  render: h => h(App),
}).$mount('#app')
